package com.xcc.annotation.ioc.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class Dog implements InitializingBean, DisposableBean {

    public Dog() {
        System.out.println("---创建Dog---");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("---销毁Dog---");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("---初始化Dog---");
    }


}
